// This is P4 sample source for basic_switching
#include <tofino/constants.p4>
#include <tofino/intrinsic_metadata.p4>
#include <tofino/primitives.p4>
#include <tofino/pktgen_headers.p4>
#include <tofino/stateful_alu_blackbox.p4>
#include <tofino/wred_blackbox.p4>

#include "includes/headers.p4"
#include "includes/parsers.p4"
#include "includes/macro.p4"
#include "includes/tofino.p4"
#include "includes/metadata.p4"
#include "includes/tables.p4"
#include "includes/fieldlists.p4"
#include "includes/registers.p4"

/*---------- ingress ----------*/
control ingress {
  apply(forward_t);
  if(valid(ipv4)) {
    apply(count_packet_t);
  }
}

/*---------- egress ----------*/
control egress {
}
